Sorry about this simple question, but it would be great to get some verification.
I try to define first generation immigrants as someone foreign born (let's say India) with at least one Indian parent. So I write:
My question is about the operator |. So far, I assume that the above means that either mom is Indian or dad is Indian or BOTH are Indian.
I am uncertain about the BOTH.
Is this implied with the operator | ? I am pretty sure it is.
Thanks a lot!
Best wishes.
Nico
I try to define first generation immigrants as someone foreign born (let's say India) with at least one Indian parent. So I write:
Code:
gen indian = 1 if bornIndia==1 & (momIndian==1 | dadIndian==1)
I am uncertain about the BOTH.
Is this implied with the operator | ? I am pretty sure it is.
Thanks a lot!
Best wishes.
Nico
Comment